<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="__CSS__main.css"/>
<link rel="stylesheet" type="text/css" href="__CSS__jquery.datetimepicker.css"/>
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<load href="__PUBLIC__/js/main.js" />
</head>

<body>
<!-- 图片资源开始 -->
<div class="floatBackground" id="floatBackground" style="display: none;">
	<div class="bounced">
	<label class="closeImgResurces">X</label>
	<iframe id="imgResourcesiframe" src="{:rtrim(U('Upload/index'),'.html')}" width="750" height="465" frameborder="0" scrolling="auto"></iframe>
	</div>
</div>
<!-- 图片资源结束 -->
<div class="main-frame">
	<div class="position">中国节 > 修改人物</div>
	<div class="addobject">
		<div class="obj-form">
			<form name="form1" id="typeform1" action="{:U('editSavepeople')}" method="post" class="form-inline">
			    <input type="hidden" name="userid" value="{$userobj.userid}">	
				<ul>
					<li>
						<label class="fl tle">人物名字：</label>
						<span class="fl cnt"><input name="username" class="form-control" placeholder="人物名字" required value="{$userobj.username}"></span>
					</li>
					<li>
						<label class="fl tle">职业：</label>
						<span class="fl cnt"><input name="job" class="form-control" placeholder="职业" value="{$userobj.job}"></span>
					</li>
					<li>
						<label class="fl tle">人物图片：</label>
						<span class="fl cnt"><input name="peopicture" id="thumbimg" class="form-control" placeholder="人物图片" value="{$userobj.peopicture}" style="width: 300px;"><a class="browse" f='thumbimg'>浏览···</a></span>
					</li>
					
					<li style="margin-top:-15px;">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><img src="{$userobj.peopicture}" height="100" /></span>
					</li>
					<li>
						<label class="fl tle">人物简介：</label>
                        <span class="fl cnt"><textarea name="introduce" class="form-control" placeholder="人物简介" style="width: 650px; height:250px;">{$userobj.introduce}</textarea></span>
					</li>
					<li class="submit">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt">
							<input type="submit" value="确 定" class="submitbtn" />
							<a href="{:U('Index/peopleList')}">取消并查看列表</a>
						</span>
					</li>
				</ul>
			</form>
		</div>
	</div>

</div>
<script src="__JS__jquery.datetimepicker.full.js"></script>
<script type="text/javascript">
	function getNowFormatDate() {
		var date = new Date();
		var seperator1 = "-";
		var seperator2 = ":";
		var month = date.getMonth() + 1;
		var strDate = date.getDate();
		if (month >= 1 && month <= 9) {
			month = "0" + month;
		}
		if (strDate >= 0 && strDate <= 9) {
			strDate = "0" + strDate;
		}
		var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
				+ " " + date.getHours() + seperator2 + date.getMinutes();
		return currentdate;
	}
	$.datetimepicker.setLocale('zh');
	$('#pubtime').datetimepicker({value:getNowFormatDate(),step:10});
	
//节日名称联动
/*$('#fstvid').click( 
  function(){ 
    $(this).change(
      function(){ 
      	   var value = $(this).val();
	       $.ajax({
	                cache:false,
	                type:"POST",
	                url:"__URL__/selType",
	                dataType:"json",
	                data:{fstvid:value,},
	                timeout:30000,
	                error:function(){
	                    alert("数据获取失败!");
	                },
	                success:function(data){
					   $("#subordinateid").empty();
					    //alert(JSON.stringify(data));
	                    var count = data.length;
	                    var i = 0;
						var html="";
						 html+="<option value=''>请选择</option>"			  
	                    for(i=0;i<count;i++){
						   html+="<option value='"+data[i].netid+"'>"+data[i].netname+"</option>";
	                    }
						$("#subordinateid").append(html);
	                }
	            });
         }
    );
  }
 );
 $(function(){
       $("#subordinateid").change(function(){
           var value = $(this).val();
           $("#subordinateid").append('<input type="hidden" name="subordinateid" value="'+value+'"/>'); 
        })
     });**/

</script>
</body>
</html>

